<!DOCTYPE html>
<html>
  <head>
    {include file="public/meta" /}
  </head>
  <body>
    {include file="public/header" /}
    <!--header-web-->
    <div id="container-page">
      <aside id="sitebar">
        <div class="sitebar_list">
          <h4 class="sitebar_title">
            新鲜事
          </h4>
          <ul id="randomposts">
            {foreach name="xxs_list" item="v"}
              <li>
                <a href="{:url('index/article',array('id'=>$v['article_id']))}">
                  {$v['title']}
                </a>
              </li>
            {/foreach}
          </ul>
        </div>
        <div class="sitebar_list">
          <h4 class="sitebar_title">
            网站标签
          </h4>
          <div class="tagcloud">
          {foreach name="hotword" item="v"}
            <a href="/?wd={$v}" class="tag-cloud-link tag-link-51 tag-link-position-4" style="font-size: 15px;">
              {$v}
            </a>
          {/foreach}
          </div>
        </div>
        <a href="">
          <img class="totop" src="/public/home/images/ge.jpg"
          />
        </a>
        <script type="text/javascript">
          $(function() {
            var elm = $('.totop');
            var startPos = $(elm).offset().top;
            $.event.add(window, "scroll",
            function() {
              var p = $(window).scrollTop();
              $(elm).css('position', ((p) > startPos) ? 'fixed': 'static');
              $(elm).css('top', ((p) > startPos) ? '0px': '');
            });
          });
        </script>

        <div class="sitebar_list">
          <h4 class="sitebar_title">
            文章分类
          </h4>
          <div class="tagcloud">
            <a href="{$luyou.news}" class="tag-cloud-link tag-link-51 tag-link-position-4" style="font-size: 15px;">资讯</a>
            <a href="{$luyou.shenghuo}" class="tag-cloud-link tag-link-13 tag-link-position-10" style="font-size: 15px;">生活</a>
            <a href="{$luyou.jiankang}" class="tag-cloud-link tag-link-13 tag-link-position-10" style="font-size: 15px;">健康</a>
          </div>
        </div>

      </aside>
      <article class="box">
        <!--幻灯片-->
        {empty name="wd"}
          <div class="hmFocus">
            <div class="swiper-container autoImg">
              <div class="swiper-wrapper">
              {foreach name="banner" item="v"}
                <div class="swiper-slide">
                  <a {empty name="v.link"}href="javascript:;"{else}href="{$v.link}" target="_blank" {/empty}>
                    <img src="{$v.image}" alt="{$v.alt}">
                    <span>{$v.alt}</span>
                  </a>
                </div>
              {/foreach}
              </div>
              <div class="swiper-pagination">
              </div>
            </div>
          </div>
          <script language="javascript">
            var swiper = new Swiper('.hmFocus .swiper-container', {
              pagination: '.swiper-pagination',
              loop: true,
              autoplay: 5500,
              paginationClickable: true
            });
          </script>
        {/empty}
        
        {foreach name="list" item="v"}
          {if empty(trim($v['thumb'])) }
          <section class="list">
          <h2 class="mucctitle   ">
            <a href="{:url('index/article',array('id'=>$v['article_id']))}" target="_blank">
              {$v.title}
            </a>
          </h2>
          <time class="tebe ">
            {$v.add_time|strtotime|date='Y.m.d'}
            {eq name="v.is_hot" value="1"}
            <span class="zan">
              Hot
            </span>
            {/eq}
          </time>
          <div class="zuiyao ">
            <p>
              {empty name="v.sub_title"}
                {$v.content|movehtml|subtext="50"}
              {else/}
                {$v.sub_title}
              {/empty}
            </p>
          </div>
        </section>
        {else/}
        <section class="list">
          <h2 class=" mecctitle   ">
            <a href="{:url('index/article',array('id'=>$v['article_id']))}" target="_blank">
              {$v.title}
            </a>
          </h2>
          <span class="titleimg   ">
            <a href="{:url('index/article',array('id'=>$v['article_id']))}" target="_blank">
              <img width="1000" height="556" src="{$v.thumb}"
              class="attachment-thumbnail size-thumbnail wp-post-image" alt=""/>
            </a>
          </span>
          <time class="  ">
            {$v.add_time|strtotime|date='Y.m.d'}
            {eq name="v.is_hot" value="1"}
            <span class="zan">
              Hot
            </span>
            {/eq}
          </time>
          <div class=" zaiyao ">
            <p>
              {empty name="v.sub_title"}
                {$v.content|movehtml|subtext="60"}
              {else/}
                {$v.sub_title}
              {/empty}
            </p>
          </div>
        </section>
        {/if}
        {/foreach}
        
      </article>
      <div id="post-read-more">
        <a href="javascript:;" data-url="{:url('index/index',array('wd'=>$wd))}" {notempty name="has_next_page"}id="read-more"{/notempty}>
          {empty name="has_next_page"}没有了{else/}看更多{/empty}
        </a>
      </div>
    </div>
    {include file="public/footer" /}
  </body>

</html>